package com.example.demo.mapper;

import com.example.demo.model.UserBehavior;
import com.example.demo.model.UserInterest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.data.repository.query.Param;

import java.util.List;

@Mapper
public interface UserInterestMapper {
    @Select("SELECT * FROM user_interest WHERE user_id = #{userId}")
    List<UserInterest> findByUserId(@Param("userId") Long userId);
}